public class Types8 {
    public static void main ( String [] args){
        int a = 10;
        String b = "5";
        System.out.println(a+b);
        //105（String）字符串
        String n = "love";
        String m = "wzby";
        System.out.println(n+m);
        System.out.println(n.concat(m));
         //.concat()连接字符串
        char s1 = 'a';
        char s2 = 'z';
        System.out.println((int)s1);
        System.out.println((int)s2);
        System.out.println(s1+s2);



        //三元运算
        System.out.println("=======三元运算=======");
        int i = true ? 13 : 27;
        System.out.println(i);
        int age = 19;
        String u = age < 18 ? "未成年" : "成年";
        System.out.println(u);
    }
}

